package cn.glutnn.service.impl;

import cn.glutnn.entity.Result;
import cn.glutnn.entity.dto.RecommenderVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.glutnn.mapper.FinancingIntentionMapper;
import cn.glutnn.entity.FinancingIntention;
import cn.glutnn.service.FinancingIntentionService;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * (FinancingIntention)表服务实现类
 *
 * @author makejava
 * @since 2024-10-30 14:23:41
 */
@Service("financingIntentionService")
public class FinancingIntentionServiceImpl extends ServiceImpl<FinancingIntentionMapper, FinancingIntention> implements FinancingIntentionService {

    @Override
    public Result<IPage<FinancingIntention>> selectRecommend(Integer pageNum, Integer pageSize) {

        Page<FinancingIntention> page = page(new Page<FinancingIntention>(pageNum, pageSize)
                ,new QueryWrapper<FinancingIntention>().select("user_name","real_name","address","amount","item","area","phone")
        );

        return Result.success(page);
    }
}

